/*
 * @Date: 2023-03-26 09:05:55
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-03-26 10:14:43
 * @FilePath: \A19\backend\src\shared\protocols\Get\PtlGetAllTInfo.ts
 */
/*
 * @Date: 2023-03-26 09:05:55
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-03-26 10:14:40
 * @FilePath: \A19\backend\src\shared\protocols\Get\PtlGetAllTInfo.ts
 */
import { ObjectId } from "mongodb";
import { BaseRequest, BaseResponse, BaseConf } from "../base";
import { users } from "../../types/user";

export interface ReqGetAllTInfo extends BaseRequest {
  course: ObjectId;
  requiredTest:ObjectId[]
}

export interface ResGetAllTInfo extends BaseResponse {
  info: info[];
  students: safeStu[];
}

export interface info {
  name: string;
  userTests: {
    student: ObjectId;
    score: number;
  }[];
}
export type safeStu = Pick<users, "_id" | "name" | "number">;

export const conf: BaseConf = {};
